﻿using UnityEngine;

public class ColliderCore_Sector : ColliderCore
{
    // 圆形
    public float m_fRadius;
    public float m_fAngel;
    public float m_fStartAngel;
    // Use this for initialization

    public void DoInit(float fStartAngel, float fRadius, float fAngel)
    {
        m_fRadius = fRadius;
        m_fAngel = fAngel;
        m_fStartAngel = fStartAngel;
    }

#if UNITY_EDITOR
    void OnDrawGizmos()
    {
        if (!m_bShow)
            return;
        Gizmos.matrix = gameObject.transform.localToWorldMatrix;
        DrawTools.DrawSector(m_CurPos, m_fStartAngel, m_CurDir, m_Color, m_fAngel, 0, m_fRadius, m_fHeight);
    }
#endif
}
